// 这个js模块是一个工具模块, 只做vant组件的注册
import Vue from 'vue'
import {
  Button,
  CellGroup,
  Field,
  Icon,
  NavBar,
  Toast,
  Form,
  Tabbar,
  TabbarItem,
  Tab,
  Tabs,
  List,
  Cell,
  Grid,
  GridItem,
  Image,
  PullRefresh,
  Lazyload,
  Popup,
  ActionSheet,
  Search,
  Loading,
  Divider,
  Tag,
  Row,
  Col,
  Dialog,
  DatetimePicker,
  Uploader
} from 'vant'
// 在给注册vue组件 内部是执行了一个install函数的
Vue.use(Button)
  .use(Icon)
  .use(NavBar)
  .use(CellGroup)
  .use(Field)
  .use(Toast) // 注册后会自动挂载到vue原型上一个方法$toast
  .use(Form)
  .use(Tabbar)
  .use(TabbarItem)
  .use(Tab)
  .use(Tabs)
  .use(List)
  .use(Cell)
  .use(Grid)
  .use(GridItem)
  .use(Image)
  .use(PullRefresh)
  .use(Lazyload)
  .use(Popup)
  .use(ActionSheet)
  .use(Search)
  .use(Loading)
  .use(Divider)
  .use(Tag)
  .use(Row)
  .use(Col)
  .use(Dialog) // 注册后会自动挂载到vue原型上一个方法$dialog
  .use(DatetimePicker)
  .use(Uploader)
